<?php
/**
  * CaptchaController.php
  *
  * This is not a freeware, use is subject to license terms
  * @author CLOUD DEV TEAM
  * 
  */
if (!defined('IN_CLOUD')) exit ('Access Denied!');

class CaptchaController extends Controller
{
	public function __construct()
	{
		$this->lang = self::getLang( array( 'Common' ) );
		parent::__construct();
	}
	
	public function run()
	{
		$width = ( int )$this->post['width'];
		$height = ( int )$this->post['height'];
		$font = trim( $this->post['font'] );
		$captchaModel = new Captcha( array( 'width' => $width , 'height' => $height , 'font' => $font ) );
		$captchaModel->createCaptcha();
	}
}